package com.lagou.rpc.consumer;


import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import com.lagou.rpc.pojo.User;

public class ClientBootStrap {

    public static void main(String[] args) {
        IUserService userService = (IUserService)RpcClientProxy.createProxy(IUserService.class);
        User user = userService.getById(3);
        System.out.println(user);
    }
}
